<{Tinclude "commom/admin_header"}>
 <section id="container" >
      
      <!--顶部-->
      <{Tinclude"commom/admin_inner_header"}>
      <!--顶部-->
      
       <{Tinclude"commom/admin_left_menu"}>
       
       <section id="main-content">
          <section class="wrapper">
          	<h3><i class="<{if $___menuinfo["iconclass"]}><{$___menuinfo["iconclass"]}><{else}>fa fa-list-ul<{/if}>"></i><{$___menuinfo["base_name"]}></h3>
                <div class="row mt">
                    <div class="col-md-12">
                       <div class="form-panel">  
                           
                           <div class='col-md-12'>
                               <a class='btn btn-theme02 btn-sm' href="<{echo Common::RewriteUrl("Building","loufangadd");}>"><span class="fa fa-institution"></span>添加</a>
                               
                           </div>  
                           <div class='clearfix'></div>
                           <div class='margin_top20'></div>
                           <div class="col-lg-12">
                           <div class="row">
                               
                               <{if $loufang}>
                               <{foreach $loufang as $list}>
                               <div class="col-lg-4 col-md-4 col-sm-4 mb">
							<div class="weather-2 pn">
								<div class="weather-2-header">
									<div class="row">
										<div class="col-sm-6 col-xs-6">
											<p><{$list["base_name"]}></p>
										</div>
										<div class="col-sm-6 col-xs-6 goright">
                                                                                    <p class="small"><{echo date("Y年m月d日",$list["create_time"])}><span data-id='<{$list["id"]}>' class="fa fa-times jpdelete"></span></p>
										</div>
									</div>
								</div><!-- /weather-2 header -->
								<div class="row centered">
                                                                    <a href="<{echo Common::RewriteUrl("Building","loufangedit","&id=".$list["id"]);}>"> <img src="<{$list["thumb"]}>" class="img-circle" width="120" height="120"></a>		
								</div>
							
								<div class="profile-01 centered">
                                                                    <a href="<{echo Common::RewriteUrl("Building","loufangedit","&id=".$list["id"]);}>"><p><i class="fa fa-building-o"></i>层数:<{$list["layer_num"]}>层,房间数:<{$list["room_count"]}></p></a>
								</div>
                                                                <div class="centered">
                                                                    
                                                                    <h6>
									<i class="fa fa-filter"></i>厕所数:<{$list["wash_room"]}>
                                                                    </h6>
								</div>
                                                                <a href="<{echo Common::RewriteUrl("Building","loufangedit","&id=".$list["id"]);}>">
                                                                <div class="profile-01 centered height60">
                                                                  <p><{$list["desc"]}></p>
								</div>
                                                                  </a>
                                                          
								
							</div>
				</div>
                               <{/foreach}>
                               <{else}>
                               <div class="col-lg-12 col-md-12 col-sm-12 mb">
                                   <h4 class="text-center">数据为空</h4>
                               </div>
                               <{/if}>
                             
                               
                               
                           </div>
                           </div>
                           <div class="clearfix"></div>
                           
                           
 
                           
                           
                           
                       </div>
                    </div>
                </div>
          </section>
       </section>
 </section>
<script>
    $(document).ready(function(){
        $(".jpdelete").click(function(){
            var id=$(this).data("id");
            if(window.confirm("确定要删除吗?")){
                window.location.href="<{echo Common::RewriteUrl("Building","loufangdelete");}>&id="+id;
            }
        });
    });
</script>
<{Tinclude"commom/admin_footer"}>